﻿@using EvaluationSystem.Dto
@model UserInfoVM
<header class="header">
    <img src="~/images/logo2.png" alt="logo" class="logo">
    <ul class="header_list">
        @{
            var career = Model.People!.Career!;
            if (career == Identity.STUDENT)
            {
                <a asp-action="Select" asp-controller="Student" class="header_item">
                <li>选择课程</li>
                </a>
                <a asp-action="Index" asp-controller="Student" class="header_item">
                <li>教师评价</li></a>
                //<a asp-action="Index" asp-controller="Student" class="header_item">
                //<li>网页设计</li></a>
            }
            else if (career == Identity.TEACHER)
            {
                //<a asp-action="Index" asp-controller="Teacher" class="header_item">
                //    <li>首页</li>
                //</a>
                //<a asp-action="Select" asp-controller="Teacher" class="header_item">
                //<li>选择学生</li></a>
                <a asp-action="Course" asp-controller="Teacher" class="header_item">
                    <li>课程管理</li></a>
                <a asp-action="Result" asp-controller="Teacher" class="header_item">
                    <li>学生评价</li></a>
                <a asp-action="Export" asp-controller="Teacher" class="header_item">
                    <li>导出结果</li></a>
            }
            else if (career == Identity.LEADER)
            {
                <a asp-action="Notify" asp-controller="Leader" class="header_item">
                <li>通知管理</li></a>
                <a asp-action="Student" asp-controller="Leader" class="header_item">
                <li>学生管理</li></a>
                <a asp-action="Teacher" asp-controller="Leader" class="header_item">
                <li>教师管理</li></a>
                <a asp-action="Index" asp-controller="Leader" class="header_item">
                <li>统计信息</li></a>
            }
        }
    </ul>
    <div class="userinfo">
        <p>当前用户: <span>@Model.People.Name</span></p>
        <a asp-action="Logout" asp-controller="Home" class="logout">退出</a>
    </div>
</header>